package com.ds.infrastructure.hyperspace.console.model.response.environment;

import com.ds.infrastructure.hyperspace.console.entity.table.TbEnvironment;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yaozhendong
 * @create: 2019-10-29 14:21
 **/
@Data
@NoArgsConstructor
public class ForkListEnvironmentVO {

    private Long id;
    private String environmentName;

    public static ForkListEnvironmentVO toVO(TbEnvironment entity) {
        ForkListEnvironmentVO forkListEnvironmentVO = new ForkListEnvironmentVO();
        forkListEnvironmentVO.setId(entity.getId());
        forkListEnvironmentVO.setEnvironmentName(entity.getEnvironmentName());
        return forkListEnvironmentVO;
    }
}
